import React, { Component } from 'react';
import { NavLink } from 'react-router-dom'
import routes from '../../router/routes';
class Index extends Component {
  render() {
    return (
      <div className="footer">
        {
          routes.length > 0 && routes.map((v, i) => {
            return v.path && <NavLink key={i} to={v.path}>{v.title}</NavLink>
          })
        }
      </div>
    );
  }
}

export default Index;
